package com.bw.dg.util;

import lombok.Data;

import javax.persistence.Entity;

public class Result {

    private boolean flag;
    private String massage;
    private  Object data;

    public Result(boolean flag, String massage, Object data) {
        this.flag = flag;
        this.massage = massage;
        this.data = data;
    }

    public Result(boolean flag, String massage) {
        this.flag = flag;
        this.massage = massage;
    }

    @Override
    public String toString() {
        return "Result{" +
                "flag=" + flag +
                ", massage='" + massage + '\'' +
                ", data=" + data +
                '}';
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Result() {
    }
}
